package org.orr.budgetpro.services;

import org.orr.budgetpro.dao.UserDAO;
import org.orr.budgetpro.entities.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserService {
	@Autowired
	private UserDAO userDAO;
	
	@Transactional
	public User getUser(String userId) {
		return userDAO.getUser(userId);
	}
	
	@Transactional
	public void saveUser(User user) {
		userDAO.saveUser(user);
	}
}
